package mx.kolobok.noteeditor.ui;

import javax.swing.*;
import java.awt.*;

/**
 * User:  Nikita Belenkiy
 * Date: 29.05.11
 * Time: 2:28
 */
public class MessageDialogs {
    private MessageDialogs() {
    }

    public static boolean doYouReallyWantToDeleteThisNote(Window parent) {
        return JOptionPane.showOptionDialog(parent, "Do you really want to delete this note?", "Delete confirmation", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE, null, new Object[]{"Yes", "No"}, "No") == JOptionPane.YES_OPTION;
    }
}
